package com.toulouse.recyclage.bo;

import com.toulouse.recyclage.R;

public class PackageContainer extends RecycleContainer {

	public enum PackagingType {
		PACKAGING, PLASTIC, PAPER;
	}

	private PackagingType type;

	public PackagingType getType() {
		return type;
	}

	public void setType(PackagingType type) {
		this.type = type;
	}

	@Override
	public Integer getRecyclePlaceNameResourceId() {
		if (type != null && type.equals(PackagingType.PLASTIC)) {
			return R.string.maptitleplastic;
		}
		if (type != null && type.equals(PackagingType.PAPER)) {
			return R.string.maptitlepaper;
		}

		return R.string.maptitlepackaging;

	}

}
